//
// Created by ZYZ on 2020/6/16.
//

#ifndef TESTALGORITHM_LOG_H
#define TESTALGORITHM_LOG_H

#include <iostream>

using namespace std;

//前景色       PINKISH:品红      CYAN:青色
typedef enum FORE_COLOR {
    FORE_BLACK = 30,
    FORE_RED = 31,
    FORE_GREEN = 32,
    FORE_YELLOW = 33,
    FORE_BLUE = 34,
    FORE_PINKISH = 35,
    FORE_CYAN = 36,
    FORE_WHITE = 37
} COLOR;

//背景色
typedef enum BACK_COLOR {
    BACK_BLACK = 40,
    BACK_RED = 41,
    BACK_GREEN = 42,
    BACK_YELLOW = 43,
    BACK_BLUE = 44,
    BACK_PINKISH = 45,
    BACK_CYAN = 46,
    BACK_WHITE = 47
} BACK_COLOR;

//const char * sprint(const char * str,const char * content);

void print(const char *content);

void print(const char *content, FORE_COLOR foreColor);

void print(const char *content, FORE_COLOR foreColor, BACK_COLOR backColor);

class Log {

public:
    static void i(const char *content);
    static void d(const char *content);
    static void w(const char *content);
    static void e(const char *content);
};

#endif //TESTALGORITHM_LOG_H
